import { ParserTree, RuleNode } from ".";
import { ListLexer, Token } from "../ch2";

let list = new ParserTree();

list.addTokenNodeChild(
    new Token(ListLexer.LBRACK,"[")
)
list.addRuleNodeChild("elements")

list.addTokenNodeChild(
    new Token(ListLexer.RBRACK,']')
);

console.log("listTree",list);
